#ifndef SEM_H_
#define SEM_H_

/*--------------------------------------------------------------------------*/

int createSem(int key, int count, int perms);

int openSem(int key, int count);

int delSem(int semId);

int pSem(int semId, int semNum, int timeout);

int vSem(int semId, int semNum);

int waitSem(int semId, int semNum, int timeout);

int readySem(int semId, int semNum);

int pInstanceSem(int semId, int semNum);

int vInstanceSem(int semId, int semNum);

/*--------------------------------------------------------------------------*/

#endif /*SEM_H_*/
